package com.erclab.xpresso.util
{
	import mx.core.UIComponent;	
	public class UIUtil
	{

		public static function clearAttachingElement(attachingElement:UIComponent):void{
			var i:int = 0;
			try {
				while (attachingElement.getChildAt(i) != null){
					attachingElement.removeChildAt(i);
				}
			} catch (err:Error) {
				// Nothing to do 
			}
		}

		

	}
}